// @version go-erp 0.1
// @author xiaotangren  <unphp@qq.com>
// @data 2014-11-13

package main

import (
	"git.oschina.net/unphp/goweb/api"
	"git.oschina.net/unphp/goweb/app"
	"git.oschina.net/unphp/goweb/model"
)

func main() {

	//启动web server
	app.Init()
	go app.Run()

	//启动socket server
	go api.Run()

	//系统结束前执行的
	defer model.DeferFunc()

	//启动系统日志
	model.Listen()

}
